<?php
	require_once("global.php");
	require_once("modules/security_mod.php");
	require_once("alerter/modules/account_mod.php");
	require_once("alerter/modules/watched_mod.php");

	SecurityMod::login();

	$level = $_SESSION["account"]->getLevel();
	if ($level != "Admin" && $level != "AlertUser")
		SecurityMod::logout();

	$id = v($_REQUEST, "id");

	WatchedMod::deleteWatchedById($id);

	header('location: watch_list.php');
	
?>